/*
 * File Name : group.h
 * Auther : dream.liuguobiao
 * Create Date : 2010-5-11
 * Last Edit : 2010-5-14
 */

#ifndef GROUP_H
#define GROUP_H

#include <string>
#include <vector>

#include "user.h"

class user;

class group
{
private:
  std::string name ;
  int ID ;
  group *next ;
  std::vector<user*> users;

public:
  group(std::string new_name);
  group(std::string new_name, int new_ID);
  ~group();

  int get_ID();
  bool set_ID( int new_ID );
  group *get_next_group();
  bool set_next_group( group *new_next_group);
  std::string *get_name();
  bool remove_user( user *delete_user );
  bool insert_user( user *insert_user );
};

#endif
